<!DOCTYPE html>
<html lang="">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  <title>dew-v6</title>
</head>

<body>
  <noscript>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
        Please enable it to continue.</strong>
  </noscript>
  <div id="app"></div>
  <!-- built files will be auto injected -->
</body>
<style>
  * {
    touch-action: manipulation;
    /* 允许所有触摸操作，但禁用双击缩放 */
  }

  body {
    scrollbar-width: none;
    -webkit-user-select: none;
    /* Safari/Chrome */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE/Edge */
    user-select: none;
    /* 标准语法 */
  }
</style>
<script>
  // 增强版的JavaScript阻止缩放
  document.addEventListener('DOMContentLoaded', function () {
    // 阻止双指缩放手势
    document.addEventListener('gesturestart', function (e) {
      e.preventDefault();
    });

    // 阻止双指捏合缩放
    document.addEventListener('touchmove', function (e) {
      if (e.scale !== 1) {
        e.preventDefault();
      }
    }, { passive: false });

    // 确保输入框在焦点状态下也不会缩放
    document.querySelectorAll('input, textarea, select').forEach(el => {
      el.addEventListener('focus', function () {
        document.documentElement.style.transform = 'scale(1)';
      });
    });
  });
</script>

</html>